﻿@if (ViewData["Messages"] != null)
{
    foreach (Magicodes.WeiChat.Models.MessageInfo item in ViewBag.Messages)
    {
        <div class="alert alert-@item.MessageType.ToString().ToLower()">
            @Html.Raw(item.Message)
        </div>
    }
}